package com.lengxf.aPlugins.bizType.model.backup_agk;

import com.lengxf.aPlugins.bizType.BizInterface;
import com.lengxf.aPlugins.bizType.GroupSubTypeEnum;
import com.lengxf.aPlugins.bizType.GroupTypeEnum;
import com.lengxf.aPlugins.bizType.InteractionModel;

import java.util.List;

/**
 * 开工队列逻辑
 */
public class KaiGong_agk implements BizInterface {

    @Override
    public List<InteractionModel> getInteractionModelList() {
        return List.of(
                responseInteractionModel(),
                requestInteractionModel(),
                dataInteractionModel()
        );
    }

    public static InteractionModel requestInteractionModel() {
        List<String> list = List.of("Req_ID1");
        return new InteractionModel(GroupTypeEnum.SUBSCRIPTION, GroupSubTypeEnum.REQUEST, list);
    }

    public static InteractionModel responseInteractionModel() {
        List<String> list = List.of("Rsp_ID1");
        return new InteractionModel(GroupTypeEnum.WRITE, GroupSubTypeEnum.COMPLETE, list);
    }

    public static InteractionModel dataInteractionModel() {
        List<String> list = List.of(
                "VIN1",
                "MateriaType",
                "BodyType1",
                "Part",
                "Roof",
                "Engine",
                "Config01",
                "Config02",
                "Config03",
                "Config04",
                "BitConfig01",
                "BitConfig02",
                "BitConfig03",
                "BitConfig04",
                "BitConfig05",
                "BitConfig06",
                "BitConfig07",
                "BitConfig08",
                "BitConfig09",
                "BitConfig10",
                "BitConfig11",
                "BitConfig12",
                "BitConfig13",
                "BitConfig14",
                "BitConfig15",
                "BitConfig16",
                "Flag",
                "BodyNo1"
        );
        return new InteractionModel(GroupTypeEnum.WRITE, GroupSubTypeEnum.WRITE, list);
    }

}
